/****************************************************************************
 * libwiigui Template
 * Tantric 2009
 *
 * demo.h
 ***************************************************************************/

#ifndef _DEMO_H_
#define _DEMO_H_


#include "FreeTypeGX.h"

enum {
	METHOD_AUTO,
	METHOD_SD,
	METHOD_USB,
	METHOD_DVD,
	METHOD_SMB,
	METHOD_MC_SLOTA,
	METHOD_MC_SLOTB,
	METHOD_SD_SLOTA,
	METHOD_SD_SLOTB
};

struct SSettings {

	char AppName[100]; 
	char AppPath[100];
	char AppFile[100];
	char TempName[100];
	char TempPath[100];
	char TempFile[100];
	char ThemePath[100];
	char TempTheme[100];
	bool DVDON;
	bool TempDVDON;
	int DVDSlot;
	int TempDVDSlot;
	

	
};
extern struct SSettings Settings[10];

struct fatDevice {

	/* Device mount point */
	const char *mount;

	/* Device interface */
	const DISC_INTERFACE *interface;
};
extern struct fatDevice fatdev[3];
	

void ExitApp();
extern int ExitRequested;
extern FreeTypeGX *fontSystem;
bool WriteConfig(const char* fname);
bool ReadConfig(const char* fname);
char* trimcopy(char *dest, char *src, int size);
bool trimsplit(char *line, char part1, char *part2, char delim, int size);
char* trim_n_copy(char *dest, char *src, int n, int size);


#endif
